@extends('layouts.master')

@section('content')
     <section id="sidebar" class="col-lg-4 col-lg-push-1">
       <div id="signinbox"> 
     @if($errors->all())
     <div class="alert alert-danger">  
     <ul>
      @foreach($errors->all() as $error)
         <li>{{ $error }}</li>
      @endforeach
   </ul>
   </div>
   @endif

    @if(Session::has('flash_error'))
          <div class="alert alert-danger">
        <p>{{Session::get('flash_error')}}</p>
        </div>  
       @endif




      {{ Form::open(array('url'=>'postSignin','method' => 'post',"role"=>"form","class"=>"form-signin")) }}
   
     {{ Form::text('email', Input::old('email')?Input::old('email'):'', array('class'=>'form-control', 'placeholder'=>'UserID / Email address')) }}
    <table><tr><td class="flex-table-primary">
    {{ Form::password('password', array('class'=>'form-control', 'placeholder'=>'Password')) }}

    </td>
        <td  class="flex-table-secondary">
  

    {{ Form::submit('Sign in', array('class'=>'submit btn btn-primary flex-table-btn js-submit')) }}

    </td></tr></table>
    
    <label class="checkbox" for="remember">
        {{Form::checkbox('remmeber', '');}}
        Remember Me
        </label>
        {{ Form::close() }}
          
    </div>
    <br><br><br>
     <a href="signup">Sign up</a> or <a href="forgot">Forget your password </a>
   
    </div>
     <br><br><br><br><br><br><br><br><br><br>
    </section>
@stop